﻿using PersistentObject.Common.Attributes;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PersistentObject.SqlServer2012
{
    /// <summary>
    /// Define this base class for the objects using Id as the identity key 
    /// </summary>
    [NonPersist]
    public abstract class IdentityKeyEntity
    {
        /// <summary>
        /// Indicate the default identity key with Id name
        /// </summary>
        [Key(true)]
        public int Id { get; set; }
    }
}
